package com.clement.spring.study;

import org.springframework.context.MessageSource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Clement on 2017/2/27.
 */
public class ApplicationRunnerContextRunner {
    public static void main(String[] args) {
        MessageSource resources = new ClassPathXmlApplicationContext("META-INF/spring/message-source.xml");
        String message = resources.getMessage("message",null,"Default",null);
        System.out.println(message);
    }
}
